<script>
	import {
		mapMutations
	} from 'vuex';

	export default {
		methods: {
			...mapMutations(['userLogin'])
		},
		onLaunch: function() {
			let userInfo = uni.getStorageSync('userInfo') || '',
				_this = this;
			if (userInfo.token) {
				uni.getStorage({
					key: 'userInfo',
					success(res) {
						_this.userLogin(res.data)
					}
				})
			}

		},
		onShow: function() {
          
		},
		onHide: function() {
			
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	// 设置整个项目的背景
	/* #endif */
	@import '@/static/iconfont.css';
	.uni-popup-message__box{
		padding:0 15px;
		height:188rpx;
		line-height: 350rpx;
		.uni-popup-message-text{
			font-weight: bold;
			font-size:32rpx;
		}
	}
</style>
